package com.situ.crm.mapper;

import java.util.List;

import com.situ.crm.entity.Permission;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);
    
    List<Permission> pageList();
    
    List<Permission> pagelist(Permission permission);
    
    Permission selectByResource(String resource);
    
    List<Permission> selectByUserId(Integer userId);
}